package com.designer.shapes
{
	
	public class Rectangle extends GeometricShape
	{
		
		public function Rectangle(lineColor:Number=0, lineThickness:Number=0, lineAlpha:Number=1, fillColor:Number=0, fillAlpha:Number=1, xStart:Number=0, yStart:Number=0, xFinal:Number=0, yFinal:Number=0) {
			super("rectangle", lineColor, lineThickness, lineAlpha, fillColor, fillAlpha, xStart, yStart, xFinal, yFinal);
			draw();
		}
		
		public override function draw():void
		{
			
			this.graphics.clear();
			
			this.graphics.lineStyle(1.0, lineColor, 1.0);
			this.graphics.beginFill(fillColor, 1.0);
			
			this.graphics.drawRect(xStart, yStart, wid, hei);

		}
		
	}
}